<?php
/**
 * TesterView.php
 */
class TesterView extends WpAbstractV
{
    
  protected $_arrJoin = array(
    array(
      'table' => 'tester',
      'alias' => 'tester',
      'fields' => array(
        array('name' => 'id', 'alias' => 't_id', 'type' => 'number'),
        array('name' => 'field1', 'alias' => 't_field1', 'type' => 'string'),
        array('name' => 'field2', 'alias' => 't_field2', 'type' => 'number'),
        array('name' => 'field3', 'alias' => 't_field3', 'type' => 'string')
      )
    ),
    array(
      'table' => 'tester_add_data',
      'alias' => 'tad',
      'fields' => array(
        array('name' => 'id', 'alias' => 'a_id', 'type' => 'number'),
        array('name' => 'tester_id', 'alias' => 'a_tid', 'type' => 'number'),
        array('name' => 'field2', 'alias' => 'a_field2', 'type' => 'string')
      ),
      'joinoperator' => '=',
      'jointype' => 'INNER JOIN',
      'joinkey' => 'tester_id',
      'jointarget' => 'tester',
      'jointargetkey' => 'id',
      'joinaddcondition' => ''
    )
  );
  
  //####################################################################
    /**
     * @see SimpleDatexM::getPkField()
     */
    public function getPkField() {
        return 'tester.id';
    }
}

/* End of file TesterView.php */
/* Location: ./wildpack/Tests/dataccess/wpdatexserver/TesterView.php */ 